<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<table>
	<tr>
		<th>id</th>
		<th>rank</th>
		<th>title</th>
		<th>description</th>
		<th>tags</th>
	</tr>
	<c:forEach var="book" items="${books}">
		<tr>
			<td><a href="bookDetails.htm?bookId=<c:out value='${book.id}'/>"><c:out
				value="${book.id}" /></a></td>
			<td><c:out value="${book.rank}" /></td>
			<td><c:out value="${book.title}" /></td>
			<td><c:out value="${book.description}" /></td>
			<td><c:out value="${book.tags}" /></td>
		</tr>
	</c:forEach>
	
</table>
<c:forEach var="i" begin="1" end="${page_num}">
	<a href='javascript:search(<c:out value="${i}"/>)' 
		<c:if test="${i==page_no}">class="currA"</c:if>
	>
		<c:out value="${i}"/>
	</a>
</c:forEach>